<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>视听词典</title>
<link href="templates/css/index.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function play(id){
    var player = document.getElementById('player');
    player.setAttribute('data','/vvdict/index.php?controller=study&action=audio&id='+id);
    player.Play();
};
function stop(){
    document.getElementById('player').Stop();
};
</script>
</head>
<body>
  {{webcontrol type="menu" name="mymenu"}}
    <form id="pic" method='post' action="{{url controller=edit action=editvoice}}" enctype="multipart/form-data">
        id:<br><input type="text" name="id" value="{{$data.id}}">
        <br>
        word:<br><input type="text" name="word" value="{{$data.Word}}">
        <br>
        no:<br><input type="text" name="no" value="{{$data.No}}">
        <br>
        Voice_type:<br><input type="text" name="type" value="{{$data.Type}}">
        <br>
        <a href="javascript:return false;"onclick="play({{$data.id}});stop();" onmouseover="play({{$data.id}});stop();" onmouseout="stop();"><img src="templates/images/audio.gif" border=0></a>
        <br>
        上传声音文件:<br><input name="voice" type="file" id="voice">
        <br>
        <input type="reset" value="重置">
        <input type="submit" value="提交">
    </form>
    <object id="player" type="audio/wav" data="" width="0" height="0">
      <param name="src" value="{{url controller=edit action=audio}}" />
      <param name="autostart" value="true" />
      <param name="controller" value="false" />
    </object>
</body>
</html>
